package com.lipiao.traveltreasure.service.impl.travelTreasure;

import com.lipiao.traveltreasure.bean.travelTreasureBean.OrderBean;
import com.lipiao.traveltreasure.dao.traveltreasure.OrderMapper;
import com.lipiao.traveltreasure.service.travelTreasure.OrderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * OrderService实现类
 */
@Service
@Transactional
public class OrderServiceImpl implements OrderService {

    //注入Mapper接口对象
    @Resource
    private OrderMapper orderMapper;

    @Override
    public int add(OrderBean book) {
        return 0;
    }

    @Override
    public OrderBean findByName(String name) {
        return null;
    }

    @Override
    public List<OrderBean> findAll() {
        return orderMapper.selectAll();
    }

    @Override
    public int modify(OrderBean book) {
        return 0;
    }

    @Override
    public int delete(Integer[] id) {
        return 0;
    }
}
